package com.yshebkb.sulp.domain;

import com.yshebkb.sulp.entity.User;
import lombok.Data;

/**
 * @author yshebkb
 * create at 2018/9/22
 */
@Data
public class UserView {
    private Long id;

    private String name;

    private String chsname;

    private String email;

    private Byte status;

    public UserView() {
    }

    public UserView(User user) {
        this.id = user.getId();
        this.name = user.getName();
        this.email = user.getEmail();
        this.chsname = user.getChsname();
        this.status = user.getStatus();
    }
}
